from datetime import datetime


def convertTime(timestamp_ms):

    # 将毫秒转换为秒
    timestamp = timestamp_ms / 1000

    # 将时间戳转换为 datetime 对象
    dt_object = datetime.fromtimestamp(timestamp)

    # 打印可视化的日期和时间
    print(dt_object.strftime('%Y-%m-%d %H:%M:%S'))

if __name__ == '__main__':
    convertTime(1711767432207)
    convertTime(1710583092000)